home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / IBSPFrontend.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  2.3 KB  |  80 lines

  1. //-----------------------------------------------------------------------------
  2. //
  3. // $LogFile$
  4. // $Revision: 1.3 $
  5. // $Author: ttimo $
  6. // $Date: 2000/01/18 00:43:59 $
  7. // $Log: IBSPFrontend.h,v $
  8. // Revision 1.3  2000/01/18 00:43:59  ttimo
  9. // RC
  10. //
  11. // Revision 1.2  2000/01/13 00:46:41  ttimo
  12. // Merged in patches in / out
  13. //
  14. // Revision 1.1.1.1.2.1  2000/01/13 00:15:41  ttimo
  15. // beta of patches in / out - tested with GenSurf
  16. //
  17. // Revision 1.1.1.1  2000/01/07 17:17:27  ttimo
  18. // initial import of Q3Radiant module
  19. //
  20. // Revision 1.2  2000/01/07 16:40:09  TBesset
  21. // merged from BSP frontend
  22. //
  23. // Revision 1.1.2.4  2000/01/07 00:16:26  TBesset
  24. // frontend ready for public version
  25. //
  26. // Revision 1.1.2.3  2000/01/04 00:26:58  TBesset
  27. // added a LoadPointFile in BSP frontend
  28. //
  29. // Revision 1.1.2.2  1999/12/31 19:43:20  TBesset
  30. // no message
  31. //
  32. // Revision 1.1.2.1  1999/12/29 16:49:39  TBesset
  33. // adding IBSPFrontend to the repository
  34. //
  35. //
  36. // DESCRIPTION:
  37. // interface for BSP frontends plugins
  38. //
  39.  
  40. // DONE:    - change BSP menu to Q3Build menu ?
  41. // DONE:    - detect when Q3Build dies ?
  42. // DELAYED: - hotkeys !
  43. // SUCCESS: - try again getting feedback from Q3Build
  44.  
  45. #ifndef __IBSPFRONTEND_H_
  46. #define __IBSPFRONTEND_H_
  47.  
  48. // define a GUID for this interface so plugins can access and reference it
  49. // {8ED6A480-BA5E-11d3-A3E3-0004AC96D4C3}
  50. static const GUID QERPlugBSPFrontendTable_GUID = 
  51. { 0x8ed6a480, 0xba5e, 0x11d3, { 0xa3, 0xe3, 0x0, 0x4, 0xac, 0x96, 0xd4, 0xc3 } };
  52.  
  53. // ask the plugin about the items to show up in the BSP menu
  54. typedef char * (WINAPI* PFN_GETBSPMENU)    ();
  55. // dispatch a BSP menu command
  56. typedef void (WINAPI* PFN_DISPATCHBSPCOMMAND) (char *);
  57.  
  58. struct _QERPlugBSPFrontendTable
  59. {
  60.     int m_nSize;
  61.     PFN_GETBSPMENU            m_pfnGetBSPMenu;
  62.     PFN_DISPATCHBSPCOMMAND    m_pfnDispatchBSPCommand;
  63. };
  64.  
  65. // interface provided by Radiant to the plugin
  66. // {A2CCF366-BA60-11d3-A3E3-0004AC96D4C3}
  67. static const GUID QERAppBSPFrontendTable_GUID = 
  68. { 0xa2ccf366, 0xba60, 0x11d3, { 0xa3, 0xe3, 0x0, 0x4, 0xac, 0x96, 0xd4, 0xc3 } };
  69.  
  70. typedef char * (WINAPI* PFN_GETMAPNAME) ();
  71. typedef void (WINAPI* PFN_LOADPOINTFILE) ();
  72.  
  73. struct _QERAppBSPFrontendTable
  74. {
  75.     int m_nSize;
  76.     PFN_GETMAPNAME        m_pfnGetMapName;
  77.     PFN_LOADPOINTFILE    m_pfnLoadPointFile;
  78. };
  79.  
  80. #endif